#ifndef CURVESHOWWIDGET_H
#define CURVESHOWWIDGET_H

#include <QListWidget>
#include "plotdata.h"
#include "interfaces.h"

class CurveShowWidget : public QListWidget, public PlotObserver
{
	Q_OBJECT

public:
	CurveShowWidget(PlotData *data, QWidget *parent = 0);
	~CurveShowWidget();
	void update();

private:
	PlotData *m_plotData;
	void addCurve(std::string cur_name);
	void initCurves();

signals:
	void checkStateChanged(std::string cur_name, bool state);

public slots:
	void SetLastValue(std::string cur_name, double value);
};

#endif // CURVESHOWWIDGET_H
